<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>

<body>
	<script type="text/javascript">
		//编写一个函数,计算任意两个数字之间所能组成的所有奇数,数字必须是个位,例如 0 ~ 3 ==> 01 03 11 13 21 23 31 33 f1(0,3)

		function getOdd(n, m) {
			let result = [];
			for (let j = n; j <= m; j++) {
				for (let i = n; i <= m; i++) {
					let num = j
					let str = String(num)
					str = str + i
					if (parseInt(str) % 2 != 0) {
						// console.log(str)
						result.push(str)
						// let result = str
					}
					// return result
				}
			}
			return result

		}
		console.log(getOdd(0, 3))
		// getOdd(0, 3)
	</script>
</body>

</html>